<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* selection div:nth-child(1){
            color: red;
        } */
        section div:nth-of-type(1){
            color: red;
        }
        /* span:nth-of-type(5n){
            color: red;
        } */

    </style>
</head>
<body>
    <section>
        <p>1</p>
        <div>2</div>
        <div>3</div>
    </section>
    <script>
        
    </script>
</body>
</html>